<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<div class="bjui-pageHeader">
       <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/management/staff/pageList.do" method="post">
        <input type="hidden" name="pageSize" value="${vo.pageSize}">
        <input type="hidden" name="pageCurrent" value="${vo.pageCurrent}">
        <input type="hidden" name="orderField" value="${vo.orderField}">
        <input type="hidden" name="orderDirection" value="${vo.orderDirection}">    
       <div class="bjui-searchBar">
         	<label>上级机构编码：</label><input type="text" name="orgCode" value="${param.orgCode}" class="form-control" size="10" readonly />
         	   <label>机构名称：</label><input type="text" name="orgName" value="${param.orgName}" class="form-control" size="10" />
         	<label>员工姓名：</label><input type="text" name="staffName" value="${param.staffName}" class="form-control" size="10" />
         	<label>员工工号：</label><input type="text" name="staffNum" value="${param.staffNum}" class="form-control" size="10" />
            <button type="submit" class="btn-default" data-icon="search">查询</button>
        </div>
    </form>
     <button type="button" class="btn btn-default" data-toggle="dialog" data-width="800" data-height="550" data-id="dialog-mask" data-mask="true" data-url="${ctx}/management/staff/initAdd.do?orgCode=${param.orgCode}" data-title="添加参数">添加</button>
</div>

<div class="bjui-pageContent">
       	<table  data-width="100%"   class="table table-bordered table-hover table-striped table-top" data-toggle="tablefixed" >
    	<thead>
    	<tr>
    		<th>员工姓名</th>
    		<th>员工工号</th>
    		<th>联系电话</th>
    		<th>入司时间</th>
    		<th>职务</th>
    		<th>联系地址</th>
    		<th>备注</th>
    		<th>操作</th>
    	</tr>
    	</thead>
    	<tbody>
    	<c:forEach var="list" items="${objList}">
    	<tr>
    		<td>${list.staffName}</td>
    		<td>${list.staffNum}</td>
    		<td>${list.ptel}</td>
    		<td>${list.entryDate}</td>
    		<td>${list.posiTion}</td>
    		<td>${list.contactAddr}</td>
    		<td>${list.remark}</td>
    		<td>
    			<a href="${ctx}/management/staff/${list.intID}/initEdit.do" class="btn btn-default" data-toggle="dialog" data-width="800" data-height="500" data-id="dialog-mask" data-mask="true">编辑</a>
    			<a href="${ctx}/management/staff/${list.intID}/delete.do" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除吗？">删除</a>
    		</td>
    	</tr>
    	</c:forEach>
    	</tbody>
    </table>
</div>

<%@ include file="/commons/pagination.jsp" %>

